import React from "react";
import { Modal } from "antd";
export default props => {
  const handleOk = e => {
    console.log(e);
    props.openEdit && props.openEdit(null, "saveOk");
  };

  const handleCancel = e => {
    console.log(e);
    props.openEdit && props.openEdit(null, "cancel");
  };
  return (
    <div>
      <Modal
        title="Basic Modal"
        visible={props.visible}
        onOk={handleOk}
        onCancel={handleCancel}
      >
        <p> Some contents... </p> <p> Some contents... </p>
        <p> Some contents... </p>
      </Modal>
    </div>
  );
};
